PRB8: Lovely Math! // Beginner

 
California Tools wants to hire you for a job! Turns out that they want a LCM feature for their program. They figure that since you are good with programming, you can easily code the LCM feature. Seems like they will not give you your paycheck until you have done this task as well. Of course, that is hardly a problem for an ambitious worker like you.

The LCM of two numbers is the lowest number that can be divided by both numbers, without a remainder. The LCM of 12 and 9, for example, is 36. It is possible for the LCM to be one of the two numbers.

Input Format

Line 1: Two space-separated integers, lower number first

Sample Input

16 24

Output Format

Line 1: The LCM of the integers

Sample Output

48




You must be logged in to submit a solution.